<template>
    <div class="adminIndex">
        <navbar></navbar>
    </div>
</template>

<script>
import navbar from "../../layout/index";
import { getInfo } from "@/api/login";

export default {
    name: "Index",
    components: {
        navbar
    },
    data() {
        return {};
    },
    mounted() {},

    created() {
        this.getUrl("/web/getuserrole").then(response => {
            if (response.data.roleId == 101) {
                this.isshow = false;
            }
        });

        getInfo().then(res => {
            this.$store.state.user.toPath = res.ApplyStatus;
            // 认证状态 0未提交 1 提交审核 2 认证通过 3 认证不通过',
            // this.$store.state.toPaths
            // if (res.hasShop == true) {
            //     this.$store.state.user.toPath = true
            // }else {
            //     this.$store.state.user.toPath = false
            // }
            // if (res.hasShop == false) {
            //     // alert(21222)
            //     this.isshow = false;
            // }
        });
    },
    methods: {}
};
</script>

<style lang="scss">
.sidebar-logo-container {
    position: relative;
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #2b2f3a;
    text-align: center;
    overflow: hidden;

    & .sidebar-logo-link {
        height: 100%;
        width: 100%;

        & .sidebar-logo {
            width: 32px;
            height: 32px;
            vertical-align: middle;
            margin-right: 12px;
        }

        & .sidebar-title {
            display: inline-block;
            margin: 0;
            color: #fff;
            font-weight: 600;
            line-height: 50px;
            font-size: 14px;
            font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
            vertical-align: middle;
        }
    }

    &.collapse {
        .sidebar-logo {
            margin-right: 0px;
        }
    }
}
.navbar {
    height: 50px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.tags-view-container {
    height: 34px;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #d8dce5;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);
}
.adminIndex .right-menuTitle,
.adminIndex .el-input--suffix {
    display: none !important;
}
</style>
